<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>培训方案</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
	<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">
<h:form>
	<div id="right">
	<div class="error pt10p bcf c0 tal" style="display: ">
		<a4j:outputPanel id="msgPanel">
			<center><h:outputText styleClass="cff"
				value="#{TrainBB.msg}" /></center>
		</a4j:outputPanel>
	</div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td><span class="cff">*</span>培训名称<h:inputText id="tp_planname" class="style_input" value="#{TrainBB.trainplan.tp_planname}" required="true" >
			<f:validateLength minimum="2" maximum="100" /></h:inputText></td>
			<td><span class="cff">*</span>培训目的<h:inputText id="tp_aimoftrain" class="style_input" value="#{TrainBB.trainplan.tp_aimoftrain}" required="true">
			<f:validateLength minimum="2" maximum="100" /></h:inputText></td>
		</tr>
		<tr>
			<td><span class="notice"><rich:message  for="tp_planname" showSummary="true" showDetail="false" /></span></td>
			<td><rich:message  for="tp_aimoftrain" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td class="yellow"><span class="cff">*</span>开始日期
			<rich:calendar id="begindate"  
								value="#{TrainBB.trainplan.tp_used_begin}" 
								datePattern="yyyy-MM-dd" required="true"/></td>
			<td class="yellow"><span class="cff">*</span>终止日期
			<rich:calendar id="enddate"   
								value="#{TrainBB.trainplan.tp_used_end}"   
								datePattern="yyyy-MM-dd" required="true"/></td>
		</tr>
		<tr>
			<td><rich:message  for="begindate" showSummary="true" showDetail="false" /></td>
			<td><rich:message  for="enddate" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td><span class="cff">*</span>OFFICE<h:selectOneMenu class="style_input" value="#{TrainBB.trainplan.office_code}">
	 			<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
			</h:selectOneMenu></td>
			<td><span class="cff">*</span>培训类型<h:selectOneMenu class="style_input" value="#{TrainBB.trainplan.tp_plankind}">
	 			<f:selectItems value="#{paramBB.selectItem['tp_plankind']}" />
			</h:selectOneMenu></td>
		</tr>
		<tr>
			<td class="yellow" colspan="2"><span class="cff">*</span>培训内容 <label>
			<h:inputTextarea id="tp_traincontent" class="style_textarea" value="#{TrainBB.trainplan.tp_traincontent}" required="true">
			<f:validateLength minimum="2" maximum="200" /></h:inputTextarea> </label><rich:message  for="tp_traincontent" showSummary="true" showDetail="false" /></td>
		</tr>
		<tr>
			<td colspan="2">备注信息 <label> <h:inputTextarea
				class="style_textarea" id="tp_remark" value="#{TrainBB.trainplan.tp_remark}" >
				<f:validateLength  maximum="200" /></h:inputTextarea> </label><rich:message  for="tp_remark" showSummary="true" showDetail="false" /></td>
		</tr>
	</table>
	</div>
	<div class="listbut">
		<h:commandButton styleClass="buttonbg" value="保存"
		action="#{TrainBB.addTrain}" /><h:commandButton styleClass="buttonbg" value="返回"
		action="#{TrainBB.toBack}" immediate="true"/></div>
	</div>
</h:form>
</body>
</html>
